package com.spring.cloud.msclient1.controller;

import com.spring.cloud.msclient1.feign.FeignTestFacade;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/test")
public class TestController {

    //OpenFeign接口
    @Resource
    private FeignTestFacade feignTestFacade;

    //测试OpenFeign接口
    @GetMapping("/feign")
    public String feign(){
        return feignTestFacade.feign();
    }
}
